<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script src="https://cdn.jsdelivr.net/npm/echarts@5.3.3/dist/echarts.min.js"></script> -->
    <script src="./echarts.min.js"></script>
</head>

<body>
    <div id="main" style="width: 600px;height:300px;"></div>
    <script type="text/javascript">
        var myEchar = echarts.init(document.getElementById('main'))
        option = {
            title: {
                text: 'Referer of a Website',
                subtext: 'Fake Data',
                left: 'center'
            },
            tooltip: {
                trigger: 'item'
            },
            legend: {
                orient: 'vertical',
                left: 'right'
            },
            xAxis: {
                name:'西区',           
                nameGap: 25,
                nameLocation:'middle',                   
                nameTextStyle:{fontSize: 50},
                type: 'category',
                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
                axisLine: {
                    show: true,
                    symbol: 'arrow',
                    symbolSize: [5, 10],
                    symbolOffset: [-3, 3],
                    lineStyle: {
                        color: "rgba(252, 36, 36, 1)",
                        width: 2
                    }
                }
            },
            yAxis: {
                type: 'value',
                name:'价格',           
                nameGap: 45,
                nameTextStyle:{fontSize: 10},
                nameLocation:'middle',
                axisLine: {
                    show: true,
                    symbol: 'arrow',
                    symbolSize: [5, 10],
                    symbolOffset: [-3, 3],
                    lineStyle: {
                        color: "rgba(252, 36, 36, 1)",
                        width: 2
                    }
                },
                axisLabel:{           
                    show: true ,
                    formatter: '{value} 元',       
                },
            },
            series: [
                {
                    data: [150, 230, 224, 218, 135, 147, 260],
                    type: 'line'
                },
                {
                    data: [150, 230, 224, 218, 135, 147, 260],
                    type: 'bar',
                    showBackground: true,
                    backgroundStyle: {
                        color: 'rgba(180, 180, 180, 0.2)'
                    }
                },
                {
                    name: 'Access From',
                    type: 'pie',
                    left:350,
                    bottom:100,
                    width:100,
                    data: [
                        { value: 150, name: 'Mon' },
                        { value: 230, name: 'Tue' },
                        { value: 224, name: 'Wed' },
                        { value: 218, name: 'Thu' },
                        { value: 135, name: 'Fri' },
                        { value: 147, name: 'Sat' },
                        { value: 260, name: 'Sun' },
                    ],
                    emphasis: {
                        itemStyle: {
                            shadowBlur: 10,
                            shadowOffsetX: 0,
                            shadowColor: 'rgba(0, 0, 0, 0.5)'
                        }
                    }
                }
            ]
        };
        myEchar.setOption(option);
    </script>
</body>

</html>